package model;

import java.sql.Date;
import java.sql.Time;

public class Tintuc {
	private int tintuc_id;
	private String hinh;
	private String title;
	private String title_khongdau;
	private Muctintuc muctintuc;
	private Date ngayviet;
	private Time thoigianviet;
	private String sukienid;
	private String noidung;
	
	public Tintuc(){
		
	}
	

	public Tintuc(int tintuc_id, String hinh, String title,
			String title_khongdau, Muctintuc muctintuc, Date ngayviet,
			Time thoigianviet, String sukienid, String noidung) {
		this.tintuc_id = tintuc_id;
		this.hinh = hinh;
		this.title = title;
		this.title_khongdau = title_khongdau;
		this.muctintuc = muctintuc;
		this.ngayviet = ngayviet;
		this.thoigianviet = thoigianviet;
		this.sukienid = sukienid;
		this.noidung = noidung;
	}


	public Tintuc(String hinh, String title,
			String title_khongdau, Muctintuc muctintuc, Date ngayviet,
			Time thoigianviet, String sukienid, String noidung) {

		this.hinh = hinh;
		this.title = title;
		this.title_khongdau = title_khongdau;
		this.muctintuc = muctintuc;
		this.ngayviet = ngayviet;
		this.thoigianviet = thoigianviet;
		this.sukienid = sukienid;
		this.noidung = noidung;
	}

	public Tintuc(String hinh, String title,
			String title_khongdau, Muctintuc muctintuc, Date ngayviet,
			Time thoigianviet, String noidung) {
		this.hinh = hinh;
		this.title = title;
		this.title_khongdau = title_khongdau;
		this.muctintuc = muctintuc;
		this.ngayviet = ngayviet;
		this.thoigianviet = thoigianviet;
		this.noidung = noidung;
	}
	
	
	
	public int getTintuc_id() {
		return tintuc_id;
	}

	public void setTintuc_id(int tintuc_id) {
		this.tintuc_id = tintuc_id;
	}

	public String getHinh() {
		return hinh;
	}

	public void setHinh(String hinh) {
		this.hinh = hinh;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getTitle_khongdau() {
		return title_khongdau;
	}

	public void setTitle_khongdau(String title_khongdau) {
		this.title_khongdau = title_khongdau;
	}

	public Muctintuc getMuctintuc() {
		return muctintuc;
	}

	public void setMuctintuc(Muctintuc muctintuc) {
		this.muctintuc = muctintuc;
	}

	public Date getNgayviet() {
		return ngayviet;
	}

	public void setNgayviet(Date ngayviet) {
		this.ngayviet = ngayviet;
	}

	public Time getThoigianviet() {
		return thoigianviet;
	}

	public void setThoigianviet(Time thoigianviet) {
		this.thoigianviet = thoigianviet;
	}

	public String getSukienid() {
		return sukienid;
	}

	public void setSukienid(String sukienid) {
		this.sukienid = sukienid;
	}

	public String getNoidung() {
		return noidung;
	}

	public void setNoidung(String noidung) {
		this.noidung = noidung;
	}

	@Override
	public String toString() {
		return "Hinh: " + hinh + "\n" + "Tiêu đề: "+ title
				+"\n" + "Tiêu đề không dấu: " + title_khongdau + "\n" +"Mục tin tức: " + muctintuc.getIdmuctintuc()+"\n" +"Ngày viết:" +ngayviet
				+"\n" +"Thời gian viết: "+thoigianviet +"\n" + "Sự Kiện" + sukienid + "\n" +"Nội dung: "+ noidung;
	}

}
